package com.furb.topicos;

import com.bancoDados.DataBaseHelper;
import com.furb.topicos.R.id;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

	@SuppressWarnings("unused")
	private DataBaseHelper helper;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.atv_main);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		int id = item.getItemId();
		if (id == R.id.cadastro_lembrete) {
			Intent i = new Intent(MainActivity.this,lembrete.class);
			startActivity(i);
			return true;
		}else if(id == R.id.cadastro_aniversario){
			Intent i = new Intent(MainActivity.this,aniversario.class);
			startActivity(i);
		}else if(id == R.id.cadastro_ligar_para){
			Intent i = new Intent(MainActivity.this,ligarPara.class);
			startActivity(i);
		}else if(id == R.id.cadastro_reuniao){
			Intent i = new Intent(MainActivity.this,reuniao.class);
			startActivity(i);
		}else if(id == R.id.cadastro_data_especial){
			Intent i = new Intent(MainActivity.this,dataEspecial.class);
			startActivity(i);
		}
		return super.onOptionsItemSelected(item);
	}

}
